package com.dlwx.parttimetalent.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by Administrator on 2017/12/27.
 */

public class OrderBean {


    /**
     * code : 200
     * result : 已接受受聘订单获取成功
     * body : [{"orderid":5,"labelname":"洗澡游泳","acceptstatus":1,"nickname":"空间里","phone_no":"15136198902","startdate":"2017.11.07","starttime":"18:20","enddate":"2017.11.07","endtime":"20:20","orderTotal":"0.00","long":"113.5433870","lat":"34.8251110","headurl":"http://192.168.0.166/god/public/uploads/head/20171219/e84a7bea73bad7d00a2abb4fb708fafd.jpg","orderType":2,"del1":2,"cancel1":2,"del2":2,"cancel2":2,"isfinish":2,"ispj":2,"remarkName":"田刚","StatusText":"已接受","Button":{"btn1":"取消订单","btn2":"","btn3":""}},{"orderid":4,"labelname":"洗澡游泳","acceptstatus":1,"nickname":"空间里","phone_no":"15136198902","startdate":"2017.11.07","starttime":"14:20","enddate":"2017.11.08","endtime":"16:20","orderTotal":"0.00","long":"113.5433870","lat":"34.8251110","headurl":"http://192.168.0.166/god/public/uploads/head/20171219/e84a7bea73bad7d00a2abb4fb708fafd.jpg","orderType":2,"del1":2,"cancel1":2,"del2":2,"cancel2":2,"isfinish":2,"ispj":2,"remarkName":"田刚","StatusText":"已接受","Button":{"btn1":"取消订单","btn2":"","btn3":""}},{"orderid":3,"labelname":"洗澡游泳","acceptstatus":1,"nickname":"空间里","phone_no":"15136198902","startdate":"2017.11.06","starttime":"14:20","enddate":"2017.11.06","endtime":"16:20","orderTotal":"0.00","long":"113.5433870","lat":"34.8251110","headurl":"http://192.168.0.166/god/public/uploads/head/20171219/e84a7bea73bad7d00a2abb4fb708fafd.jpg","orderType":2,"del1":2,"cancel1":2,"del2":2,"cancel2":2,"isfinish":2,"ispj":2,"remarkName":"田刚","StatusText":"已接受","Button":{"btn1":"取消订单","btn2":"","btn3":""}},{"orderid":2,"labelname":"洗澡游泳","acceptstatus":1,"nickname":"空间里","phone_no":"15136198902","startdate":"2017.11.06","starttime":"10:20","enddate":"2017.11.06","endtime":"12:20","orderTotal":"0.00","long":"113.5433870","lat":"34.8251110","headurl":"http://192.168.0.166/god/public/uploads/head/20171219/e84a7bea73bad7d00a2abb4fb708fafd.jpg","orderType":2,"del1":2,"cancel1":2,"del2":2,"cancel2":2,"isfinish":2,"ispj":2,"remarkName":"田刚","StatusText":"已接受","Button":{"btn1":"取消订单","btn2":"","btn3":""}},{"orderid":1,"labelname":"洗澡游泳","acceptstatus":1,"nickname":"空间里","phone_no":"15136198902","startdate":"2017.11.04","starttime":"8:20","enddate":"2017.11.05","endtime":"12:20","orderTotal":"0.00","long":"113.5433870","lat":"34.8251110","headurl":"http://192.168.0.166/god/public/uploads/head/20171219/e84a7bea73bad7d00a2abb4fb708fafd.jpg","orderType":2,"del1":2,"cancel1":2,"del2":2,"cancel2":2,"isfinish":2,"ispj":2,"remarkName":"田刚","StatusText":"已接受","Button":{"btn1":"取消订单","btn2":"","btn3":""}}]
     */

    private int code;
    private String result;
    private List<BodyBean> body;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public List<BodyBean> getBody() {
        return body;
    }

    public void setBody(List<BodyBean> body) {
        this.body = body;
    }

    public static class BodyBean implements MultiItemEntity {
        /**
         * orderid : 5
         * labelname : 洗澡游泳
         * acceptstatus : 1
         * nickname : 空间里
         * phone_no : 15136198902
         * startdate : 2017.11.07
         * starttime : 18:20
         * enddate : 2017.11.07
         * endtime : 20:20
         * orderTotal : 0.00
         * long : 113.5433870
         * lat : 34.8251110
         * headurl : http://192.168.0.166/god/public/uploads/head/20171219/e84a7bea73bad7d00a2abb4fb708fafd.jpg
         * orderType : 2
         * del1 : 2
         * cancel1 : 2
         * del2 : 2
         * cancel2 : 2
         * isfinish : 2
         * ispj : 2
         * remarkName : 田刚
         * StatusText : 已接受
         * Button : {"btn1":"取消订单","btn2":"","btn3":""}
         */

        private int orderid;
        private String labelname;
        private int acceptstatus;
        private String nickname;
        private String phone_no;
        private String startdate;
        private String starttime;
        private String enddate;
        private String endtime;
        private String orderTotal;
        @SerializedName("longitude")
        private String longX;
        private String lat;
        private String headurl;
        private int orderType;
        private int del1;
        private int cancel1;
        private int del2;
        private int cancel2;
        private int isfinish;
        private int ispj;
        private String remarkName;
        private String StatusText;
        private ButtonBean Button;
        public static final int MASTER=1;
        public static final int EMPLOYE=2;

        public int getOrderid() {
            return orderid;
        }

        public void setOrderid(int orderid) {
            this.orderid = orderid;
        }

        public String getLabelname() {
            return labelname;
        }

        public void setLabelname(String labelname) {
            this.labelname = labelname;
        }

        public int getAcceptstatus() {
            return acceptstatus;
        }

        public void setAcceptstatus(int acceptstatus) {
            this.acceptstatus = acceptstatus;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getPhone_no() {
            return phone_no;
        }

        public void setPhone_no(String phone_no) {
            this.phone_no = phone_no;
        }

        public String getStartdate() {
            return startdate;
        }

        public void setStartdate(String startdate) {
            this.startdate = startdate;
        }

        public String getStarttime() {
            return starttime;
        }

        public void setStarttime(String starttime) {
            this.starttime = starttime;
        }

        public String getEnddate() {
            return enddate;
        }

        public void setEnddate(String enddate) {
            this.enddate = enddate;
        }

        public String getEndtime() {
            return endtime;
        }

        public void setEndtime(String endtime) {
            this.endtime = endtime;
        }

        public String getOrderTotal() {
            return orderTotal;
        }

        public void setOrderTotal(String orderTotal) {
            this.orderTotal = orderTotal;
        }

        public String getLongX() {
            return longX;
        }

        public void setLongX(String longX) {
            this.longX = longX;
        }

        public String getLat() {
            return lat;
        }

        public void setLat(String lat) {
            this.lat = lat;
        }

        public String getHeadurl() {
            return headurl;
        }

        public void setHeadurl(String headurl) {
            this.headurl = headurl;
        }

        public int getOrderType() {
            return orderType;
        }

        public void setOrderType(int orderType) {
            this.orderType = orderType;
        }

        public int getDel1() {
            return del1;
        }

        public void setDel1(int del1) {
            this.del1 = del1;
        }

        public int getCancel1() {
            return cancel1;
        }

        public void setCancel1(int cancel1) {
            this.cancel1 = cancel1;
        }

        public int getDel2() {
            return del2;
        }

        public void setDel2(int del2) {
            this.del2 = del2;
        }

        public int getCancel2() {
            return cancel2;
        }

        public void setCancel2(int cancel2) {
            this.cancel2 = cancel2;
        }

        public int getIsfinish() {
            return isfinish;
        }

        public void setIsfinish(int isfinish) {
            this.isfinish = isfinish;
        }

        public int getIspj() {
            return ispj;
        }

        public void setIspj(int ispj) {
            this.ispj = ispj;
        }

        public String getRemarkName() {
            return remarkName;
        }

        public void setRemarkName(String remarkName) {
            this.remarkName = remarkName;
        }

        public String getStatusText() {
            return StatusText;
        }

        public void setStatusText(String StatusText) {
            this.StatusText = StatusText;
        }

        public ButtonBean getButton() {
            return Button;
        }

        public void setButton(ButtonBean Button) {
            this.Button = Button;
        }

        @Override
        public int getItemType() {
            return orderType;
        }

        public static class ButtonBean {
            /**
             * btn1 : 取消订单
             * btn2 :
             * btn3 :
             */

            private String btn1;
            private String btn2;
            private String btn3;

            public String getBtn1() {
                return btn1;
            }

            public void setBtn1(String btn1) {
                this.btn1 = btn1;
            }

            public String getBtn2() {
                return btn2;
            }

            public void setBtn2(String btn2) {
                this.btn2 = btn2;
            }

            public String getBtn3() {
                return btn3;
            }

            public void setBtn3(String btn3) {
                this.btn3 = btn3;
            }
        }
    }
}
